package com.example.designpattenexample.decorator.example;

public class CarOuterDecorator extends CarDecorator {

    public CarOuterDecorator(Car car) {
        super(car);
    }

    private void print(){
        System.out.println("车身彩绘");
    }

    @Override
    public void show() {
        super.show();
        this.print();
    }
}
